package com.yeheng.config;

import com.yeheng.inteceptor.MyFilter;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import org.springframework.web.servlet.support.AbstractDispatcherServletInitializer;

import javax.servlet.DispatcherType;
import javax.servlet.Filter;
import javax.servlet.FilterRegistration;
import javax.servlet.ServletContext;
import java.lang.ref.WeakReference;
import java.util.EnumSet;

/**
 * @PackgeName: com.yeheng
 * @ClassName: Myconfig
 * @Author: YH
 * Date: 2020/12/31 22:16
 * project name: homework1
 * @Version:
 * @Description:
 */
public class Myconfig extends AbstractAnnotationConfigDispatcherServletInitializer {



    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{RootConfig.class};
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{WebConfig.class};
    }


    
    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }


}
